.showTopTabBar(@name) {
    @keyframes @name {
        from {
            top: -2.25rem;
        }

        to {
            top: 0
        }
    }

    @-webkit-keyframes @name {
        from {
            top: -2.25rem;
        }

        to {
            top: 0
        }
    }

    @-moz-keyframes @name {
        from {
            top: -2.25rem;
        }

        to {
            top: 0
        }
    }

    @-o-keyframes @name {
        from {
            top: -2.25rem;
        }

        to {
            top: 0
        }
    }
}

.animation(@animation-name, @animation-duration, @animation-timing-function, @animation-delay, @play-state) {
    -webkit-animation: @arguments;
    -moz-animation: @arguments;
    -ms-animation: @arguments;
    -o-animation: @arguments;
    animation: @arguments;
}

.showTopTabBar(showTopTabBar);

.ShopDetail {
    .live_item {
        flex-flow: wrap;
        width: ~'calc(50% - 0.125rem)';
        height: 13rem;
        box-sizing: border-box;
        margin-bottom: 0.25rem;
        position: relative;
        display: inline-block;

        &::after {
            // content: "";
            // width: calc(100% - 0.05rem);
            // height: 100%;
            // left: 0;
            // top: 0;
            // position: absolute;
            // border: 0.05rem solid #f5f4f4;
            content: "";
            display: block;
            position: absolute;
            left: -50%;
            top: -50%;
            width: 200%;
            height: 200%;
            border: 0.05rem solid #e8e8e8;
            transform: scale(0.5);
            pointer-events: none;
        }

        &:nth-child(odd) {
            margin-right: 0.125rem;
        }

        &:nth-child(even) {
            margin-left: 0.125rem;
        }

        &_img {
            background: #f8f8f8;

            img {
                width: 100%;
                height: 8.85rem;
                display: block;
                margin: 0 auto;
            }
        }

        &_content {
            background: #fff;
            padding: 0.55rem 0.5rem;

            &_title {
                font-size: 0.65rem;
                color: #333;
                height: 1.5rem;
                line-height: 0.8rem;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            &_label {
                margin-top: 0.65rem;
                color: #fa0000;
                font-size: 0.7rem;

                span {
                    font-size: 0.6rem;
                    margin-left: 0.25rem;
                }
            }
        }
    }

    &_NavBar {
        .am-tabs-default-bar-underline {
            border: 0.05rem solid #fa0000;
        }
    }

    .slick-slider {
        .slick-next {
            display: none !important;
        }
    }

    &_topBar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
        width: 100%;
        opacity: 1;

        &_placeHolder {
            height: 2.25rem;
            position: relative;
        }

        &_active {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 9;
            width: 100%;
            opacity: 1;
            .animation(showTopTabBar, 0s, ease-out, 0s, forwards);
        }

        &_center {
            width: 100%;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
        }

        &_tab {
            width: 40%;
        }
    }

    &_scorll {
        position: relative;
        background-color: #f8f8f8;

        .carousel_header {
            position: absolute;
            top: 0.5rem;
            left: 0;
            z-index: 5;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            width: 100%;

            &_back {
                width: 50%;
                text-align: left;
                padding: 0 0.57rem;
            }

            &_btn {
                width: 1.6rem;
                height: 1.6rem;
                color: #fff;
                border: none;
                background-color: rgba(34, 34, 34, 0.5);
            }

            &_shareMore {
                width: 50%;
                text-align: right;
                padding: 0 0.57rem;
            }

            &_shareBtn {
                margin-right: 0.32rem;
            }
        }

        .carousel_item {
            width: 100%;
            text-align: center;
            background-color: #f8f8f8;

            .carousel_itemImg {
                height: 17.2rem;
                // width: 100%;
                margin: 0 auto;
            }
        }

        .carousel_footer {
            position: absolute;
            left: 0;
            bottom: 0.45rem;
            text-align: right;
            height: 1.12rem;
            line-height: 1.12rem;
            width: 100%;

            >div {
                margin-right: 0.57rem;
                display: inline-block;
                width: 2.15rem;
                height: 1.12rem;
                line-height: 1.12rem;
                background-color: rgba(10, 10, 10, .2);
                color: #fff;
                text-align: center;
                border-radius: 1.07rem;

                >span {
                    font-size: 0.6rem;
                }

                >span:first-child {
                    font-size: 0.8rem;
                }
            }
        }
    }

    &_goodsInfo {
        width: 100%;
        height: 14.5rem;
        background-color: #fff;

        &_followIcon {
            line-height: 2.2rem;
        }

        &_item {
            margin-bottom: 0.5rem;
            background-color: #fff;
            height: 2.5rem;
            line-height: 2.5rem;
            padding: 0 0.65rem;
        }

        // &_price{
        //     display: flex;
        //     display: -webkit-flex;
        //     justify-content: space-between;
        //     margin-bottom: 0;
        //     height: 2.7rem;
        //     background-color: #fff;
        //     > div{
        //         height: 100%;
        //         text-align: left;
        //         color: #fa0000;
        //         >span{
        //             display: inline-block;
        //             height: 100%;
        //             font-weight: 600;
        //         }
        //         >span:first-child{
        //             font-size: 0.85rem;
        //         }
        //         >span:nth-child(2){
        //             font-size: 1.25rem;
        //             margin-left: 0.15rem;
        //         }
        //         >span:last-child{
        //             font-size: 0.75rem;
        //             margin-left: 0.15rem;
        //         }
        //     }
        //     >div:last-child{
        //         display: flex;
        //         display: -webkit-flex;
        //         justify-content: flex-end;
        //     }
        //     &_right{
        //         width: 2rem;
        //         height: 100%;
        //         text-align: center;
        //         font-size: 0.55rem;
        //         color: #222222;
        //         >span {
        //             display: block;
        //             height: 50%;
        //         }
        //         >span:last-child{
        //             line-height: 1.1rem;
        //         }
        //     }
        // }
        &_Wrap {
            height: 6.75rem;
        }

        &_titleWrap {
            padding-top: 0.75rem;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
        }

        &_title {
            line-height: 1.1rem;
            font-size: 0.76rem;
            color: #222;
            font-weight: 600;
            width: 90%;
        }

        &_follow {
            width: 9%;
            text-align: right;

            >div {
                line-height: 1rem;
                text-align: center;
            }

            >div:last-child {
                line-height: .5rem;
                font-size: 0.59rem;
                color: #222;
            }

            &_icon {
                font-size: 1rem;
            }
        }

        &_price {
            color: #fa0000;

            >span {
                font-size: 0.7rem;
            }

            >span:first-child {
                padding-right: 0.35rem;
            }

            >span:nth-child(2) {
                font-size: 0.9rem;
                font-weight: 600;
            }

            >span:nth-child(3) {
                font-size: 0.9rem;
                font-weight: 600;
            }
        }

        &_buyInfo {
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            line-height: 1rem;
            color: #222;

            >div:first-child {
                width: 35%;

                >span:first-child {
                    padding-left: 0.5rem;
                    display: inline-block;
                    text-align: center;
                }

                img {
                    height: 0.6rem;
                    display: inline-block;
                    vertical-align: middle;
                }
            }

            >div:last-child {
                width: 65%;
                text-align: right;
                font-size: 0.59rem;
                color: #222;
                line-height: 1rem;

                >img {
                    width: 0.8rem;
                    outline: 0.05rem solid #ebebeb;
                    display: inline-block;
                    position: relative;
                    top: 0.05rem;
                }

                span:last-child {
                    display: inline-block;
                    text-align: right;
                }
            }

            &_country {
                display: inline-block;
                padding-left: 0.3rem;
                padding-right: 0.55rem;
            }
        }

        &_guarantee {
            display: flex;
            display: -webkit-flex;
            justify-content: flex-start;

            >div {
                display: inline-block;
                margin-left: 0.9rem;
                font-size: 0.6rem;
                color: #222;
                font-weight: normal;

                >img {
                    height: 0.6rem;
                }

                >span {
                    display: inline-block;
                    padding-left: 0.2rem;
                }
            }

            >div:first-child {
                margin-left: 0;
            }
        }

        &_specifications {
            height: 2.5rem;

            .mk_item {
                height: 2.5rem;
                line-height: 2.5rem;
                padding: 0;
            }
        }

        &_itemTitle {
            overflow: hidden;

            >span {
                font-weight: 600;
                font-size: 0.7rem;
                color: #222;
            }

            >span:first-child {
                display: inline-block;
                padding-right: 0.8rem;
                font-size: 0.63rem;
                color: #888;
                font-weight: normal;
            }

            &_address {
                font-size: 0.7rem;
                display: inline-block;
                padding-right: 0.2rem;
                color: #fa0000;
            }
        }

        &_address {
            height: 2.5rem;

            .mk_item {
                height: 2.5rem;
                line-height: 2.5rem;
                padding: 0;
            }
        }

        &_freight {
            height: 2.5rem;

            .mk_item {
                height: 2.5rem;
                line-height: 2.5rem;
                padding: 0;
            }
        }
    }

    &_country {
        width: 1.15rem;
    }

    &_Tabs {
        .am-tabs-pane-wrap {
            overflow: hidden;
        }

        .am-tabs-default-bar-content {
            >div {
                >div {
                    width: 100%;
                    text-align: center;
                    position: relative;

                    >span {
                        width: 0.05rem;
                        height: 20%;
                        position: absolute;
                        display: inline-block;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        background-color: #e3e3e3;
                    }
                }
            }

            >div:nth-child(3) {
                >div {
                    width: 100%;
                    text-align: center;
                    position: relative;

                    >span {
                        width: 0.05rem;
                        height: 20%;
                        position: absolute;
                        display: inline-block;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        background-color: #ffffff;
                    }
                }
            }
        }

        &_item {
            text-align: center;
            background-color: #fff;
            font-size: 0.7rem;
            color: #666;

            p {
                margin: 0;
                padding: 0;
            }

            img {
                width: 100%;
                height: auto !important;
            }

            // >div {
            //     height: 1rem;
            //     line-height: 1rem;
            //     position: relative;
            // }
            // >div:before {
            //     content: '';
            //     position: absolute;
            //     left: 5%;
            //     top: 50%;
            //     width: 35%;
            //     height: 0.05rem;
            //     background-color: #e4e4e4;
            // }
            // >div:after {
            //     content: '';
            //     position: absolute;
            //     top: 50%;
            //     right: 5%;
            //     width: 35%;
            //     height: 0.05rem;
            //     background-color: #e4e4e4;
            // }
        }

        &_item:after {}

        .am-tabs-tab-bar-wrap,
        .am-tabs-default-bar-tab {
            height: 3rem;
            line-height: 3rem;
        }

        .am-tabs-default-bar-underline {
            border: none;
        }

        .am-tabs-default-bar-tab::after {
            height: 0 !important;
        }
    }

    &_operationBar {
        position: fixed;
        bottom: 0;
        left: 0;
        height: 2.65rem;
        width: 100%;
        line-height: 2.65rem;
        background-color: #fff;
        z-index: 9;

        >div {
            display: flex;
            display: -webkit-flex;
            justify-content: flex-start;

            >div {
                border-top: 0.05rem solid #eee;
                text-align: center;
                width: 33.33%;
                height: 100%;

                >div {
                    display: inline-block;
                    height: 2.65rem;
                    width: 50%;
                    line-height: 1rem;
                    padding-top: .5rem;

                    >div:last-child {
                        color: #888;
                        font-size: 0.53rem;
                        margin-top: -0.2rem;
                    }
                }
            }

            >div:nth-child(2) {
                border-top: 0.05rem solid #ff6868;
                background-color: #ff6868;
                color: #fff;
            }

            >div:nth-child(3) {
                border-top: 0.05rem solid #fa0000;
                background-color: #fa0000;
                color: #fff;
            }
        }

        &_icon {
            font-size: 1.2rem;
            position: relative;
            top: -0.1rem;
        }
    }

    &_address {
        &_selectWrap {
            height: 17.25rem;
            width: 100%;
            overflow: auto;

            >div {
                width: 100%;
                line-height: 2.6rem;
            }
        }

        &_selectTitle {
            color: #888;
            font-size: 0.75rem;
            height: 2.6rem;
            line-height: 2.6rem;
            border-bottom: 0.05rem solid #f7f7f7;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            padding-left: 0.7rem;

            >div:last-child {
                padding-right: 0.7rem;
            }
        }

        &_selectItem {
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            font-size: 0.75rem;
            width: 100%;
            text-align: left;

            i {
                padding: 0 0.7rem;
                color: #fa0000; // display: flex;
                // display: -webkit-flex;
                // justify-content: center;
                // align-items: center;
            }

            >div {
                padding: 0.95rem 0;
                text-align: left;
                line-height: 1rem;
                color: #222;
                border-bottom: 0.05rem solid #f7f7f7;
            }
        }

        &_addShop {
            height: 2.65rem;
            line-height: 2.65rem;
            text-align: center;
            color: #fff;
            font-size: 0.75rem;
            background-color: #fa0701;
        }
    }

    &_specification {
        height: 21.6rem;
        position: relative;

        .gouwuche {
            height: 100%;
            border: 0;
            border-radius: 0;
            border-color: #ff6868;
            background-color: #ff6868;
            font-size: 0.76rem;
            color: #fff !important;
        }

        .liji {
            height: 100%;
            color: #fff !important;
            border: 0;
            border-radius: 0;
            border-color: #fa0000;
            background-color: #fa0000;
            font-size: 0.76rem;
        }

        &_goodsInfo {
            padding: 0.95rem 0.7rem 0 0.7rem;
            height: 6rem;
            width: 100%;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;

            >div:first-child {
                width: 5.1rem;
            }

            >div:nth-child(2) {
                width: 10rem;
                padding: 2.8rem 0rem 0 0.95rem;
                text-align: left;

                >div {
                    text-align: left;
                    color: #fa0000;

                    >span {
                        display: inline-block;
                        font-weight: 600;
                    }

                    >span:first-child {
                        font-size: 0.66rem;
                    }

                    >span:nth-child(2) {
                        font-size: 0.93rem;
                        margin-left: 0.2rem;
                    }

                    >span:last-child {
                        font-size: 0.66rem;
                        margin-left: 0.2rem;
                    }
                }

                >p {
                    margin: 0;
                    font-size: 0.62rem;
                    color: #222222;
                }
            }

            >div:last-child {
                height: 100%;
                text-align: right;
            }
        }

        &_closeIcon {
            font-size: 0.9rem;
        }

        &_goodsImg {
            height: 5.1rem;
        }

        &_content {
            padding: 0 0.7rem;
            height: 12.65rem;
            overflow-y: scroll;
        }

        &_itemTitle {
            padding-top: 1.25rem;
            text-align: left;
            font-size: 0.76rem;
            color: #222;
        }

        &_selectWrap {
            text-align: left;
            font-size: 0.69rem;

            >span {
                margin-top: 0.45rem;
                display: inline-block;
                margin-right: 0.65rem;
                padding: 0.3rem 0.8rem;
                border-radius: 1rem;
            }
        }

        &_selectNum {
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
        }

        &_googsNum {
            padding-top: 1.25rem;
            padding-bottom: 0.45rem;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;

            >div {
                font-weight: 400;
                padding: 0 0.4rem;
                font-size: 1rem;
                line-height: 1rem;
            }

            >div:first-child {
                color: #cccccc;
            }

            >div:nth-child(2) {
                font-size: 0.76rem;
                color: #222;
            }

            >div:last-child {
                color: #222;
            }
        }

        &_addGoods {
            position: relative;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2.65rem;
            line-height: 2.65rem;
            color: #fff;
            border-radius: 0;
            z-index: 999;
            top: 0.3rem;
            /* 标准的语法 */
        }

        &_default {
            background-color: #f6f6f6;
            color: #222;
            border: 0.05rem solid #f6f6f6;
        }

        &_active {
            background-color: #fef4f3;
            color: #fa0000;
            border: 0.05rem solid #fa0000;
        }
    }

    &_share {
        &_wrap {
            height: 21.5rem;
            background-color: #fff;
        }
    }
}

.carousel_header {
    &_popover {
        &_item {
            width: 7.15rem;
            height: 2.25rem;
            line-height: 2.25rem;
            border-bottom: 0.05rem solid #eee;
            display: flex;
            display: -webkit-flex;
            justify-content: flex-start;
        }

        &_itemIconWrap {
            width: 2.7rem;
            text-align: center;
            display: inline-block;
        }

        &_itemIcon {
            position: relative;
            font-size: 1.05rem;
            line-height: 2.25rem;
        }

        &_itemBadge {
            position: absolute;
            top: -30%;
            right: -50%;
            font-size: 0.45rem;

            .am-badge-text {
                background-color: #fa0000;
            }
        }

        &_itemContent {
            display: inline-block;
            height: 2.25rem;
            width: 50%;
        }
    }   
}

.t_z {
    .mk_item_right {
        max-width: 70%;
    }
}